/* 交通事件处理平台样式表 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
}
.header {
    background-color: #003366;
    color: white;
    padding: 15px 0;
    margin-bottom: 20px;
}
.logo {
    height: 50px;
}
.event-card {
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.severity-high {
    border-left: 5px solid #dc3545;
}
.severity-medium {
    border-left: 5px solid #ffc107;
}
.severity-low {
    border-left: 5px solid #28a745;
}
.visualization-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.tab-content {
    padding: 20px 0;
}
.map-container {
    height: 300px;
    background-color: #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    position: relative;
}
.resource-badge {
    margin-right: 5px;
    margin-bottom: 5px;
}
#map-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
.accident-marker {
    width: 30px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc3545"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.info-window {
    padding: 10px;
    min-width: 200px;
}
.info-window h5 {
    color: #dc3545;
    margin-bottom: 5px;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}
.loading-spinner {
    width: 3rem;
    height: 3rem;
}
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}
.impact-timeline {
    margin-top: 20px;
}
.timeline-item {
    display: flex;
    margin-bottom: 15px;
}
.timeline-time {
    width: 80px;
    font-weight: bold;
    color: #6c757d;
}
.timeline-content {
    flex: 1;
    padding-left: 15px;
    border-left: 2px solid #dee2e6;
    position: relative;
}
.timeline-content:before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0d6efd;
}
.impact-level {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}
.level-high {
    background-color: #dc3545;
    color: white;
}
.level-medium {
    background-color: #ffc107;
    color: #212529;
}
.level-low {
    background-color: #28a745;
    color: white;
}